<template>
    <div>
        <h2>Banner</h2>
        <button @click="back">后退</button>
        <button @click="forward">前进</button>
        <button @click="go(-2)">go-2</button>
    </div>
</template>

<script>
    export default {
        name : "Home",
        methods:{
            back(){
                this.$router.back()
            },
            forward(){
                this.$router.forward()
            },
            go(number){
                this.$router.go(-2)
            }
        }
    }
</script>

<style scoped>

</style>